package com.zjj.userweb.controller;

import com.zjj.userweb.request.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: zhaojj
 * @create: 2019-07-12 15:42
 **/
@RestController
public class TestController {
    @Autowired
    IUserService iUserService;

    @RequestMapping(value = "/test",method = RequestMethod.GET)
    public String test(String name){
        System.out.println(name);
        return iUserService.testApi(name);
    }
}
